import React from 'react';
import {HashRouter, Route, Routes} from "react-router-dom";
import Index from "../Pages/Index/index";
import Children from "../Pages/Index/Children/Children";
import Detail from "../Pages/Index/Detail";
const MRouter = () => {
    return (
        <div>

<HashRouter>


    <Routes>
        <Route path="/index" element={<Index/>}>
            <Route path="Children/:MyId" element={<Children/>}></Route>
        </Route>
        {/*<Route path={"/detail/:myid"} element={<Detail/>} component={<Detail/>}></Route>*/}
        <Route path={"/detail"} element={<Detail/>}></Route>
        <Route index element={<Index></Index>}></Route>
    </Routes>
</HashRouter>
        </div>
    );
};

export default MRouter;
